import request from '@/utils/myRequest'

// 获取退单列表
function findReturnApply(start, limit, data) {
  return request({
    url: `/lejuAdmin/orderReturn/findReturnApply/${start}/${limit}`,
    method: 'POST',
    data
  })
}
// 退单明细
function orderReturn(id) {
  return request({
    url: `/lejuAdmin/orderReturn/${id}`
  })
}
// 收到退货
function receiveProduct(id, data) {
  return request({
    url: `/lejuAdmin/orderReturn/receiveProduct/${id}`,
    method: 'POST',
    data
  })
}
// 同意退货
function agreeApply(id, data) {
  return request({
    url: `/lejuAdmin/orderReturn/agreeApply/${id}`,
    method: 'POST',
    data
  })
}
// 拒绝退货
function rejectApply(id, data) {
  return request({
    url: `/lejuAdmin/orderReturn/rejectApply/${id}`,
    method: 'POST',
    data
  })
}

export { findReturnApply, orderReturn, receiveProduct, agreeApply, rejectApply }
